package com.ruoyi.product.service.impl;

import com.ruoyi.product.domain.WorkPlan;
import com.ruoyi.product.mapper.PlanMapper;
import com.ruoyi.product.service.IPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PlanServiceImpl implements IPlanService {

    @Autowired
    private PlanMapper planMapper;
    @Override
    public int addPlan(WorkPlan workPlan) {
        return planMapper.addPlan(workPlan);
    }

    @Override
    public int existPlan(String planCode) {
        return planMapper.existPlan(planCode);
    }
}
